<?php
    echo CHtml::openTag('ul', array('class' => 'products-grid', 'id' => 'slider_list'));
    $i=0;
    foreach ($newProducts as $key => $value):
        $first =($i==0) ? ' frist' : '';
        echo CHtml::openTag('li', array('class' => 'item'.$first));
            echo CHtml::link(CHtml::image(Yii::app()->baseUrl."/uploads/images/products/" . $value->image, $value->name, array('width' => '128%')), Yii::app()->createUrl('product/category/', array('id' => $value->id)), array());
            echo CHtml::openTag('div');
                echo CHtml::tag('h3', array('class' => 'product-name'), CHtml::link($value->name, Yii::app()->createUrl('product/category/', array('id' => $value->id))), true);
                echo CHtml::openTag('div', array('class' => 'price-box'));
                    echo CHtml::openTag('span', array('class' => 'regular-price', 'id' => 'product-price-44-new'));
                        echo CHtml::tag('span', array('class' => 'price', 'style' => 'margin-left: -25%'), number_format($value->price, 0, ' ', ' ') . ' VNĐ');  
                    echo CHtml::closeTag('span');
                echo CHtml::closeTag('div');
            echo CHtml::closeTag('div');
        echo CHtml::closeTag('li');
        $i++;
    endforeach;
    echo CHtml::closeTag('ul');
?>